package com.jungle.bfi.metadata.swagger.vo;

import com.jungle.bfi.metadata.swagger.enums.PathType;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class ApiPath {
    /**
     * 路径类型
     */
    private PathType type;
    /**
     * 路径
     */
    private String path;
    /**
     * 请求方法(可选)
     */
    private String method;
    /**
     * 摘要
     */
    private String summary;
    /**
     * 描述
     */
    private String description;
    /**
     * 标签
     */
    private List<String> tags;
    /**
     * 请求参数类型
     */
    private String contentType;
    /**
     * 返回数据类型
     */
    private String schemaType;
    /**
     * 返回参数类型
     */
    private String schemaRef;

    @Override
    public String toString() {
        return "ApiInfoVo{" +
                "path='" + path + '\'' +
                ", method='" + method + '\'' +
                ", summary='" + summary + '\'' +
                ", tags=" + tags.get(0) +
                ", description='" + description + '\'' +
                ", contentType='" + contentType + '\'' +
                ", schema='" + schemaType + '\'' +
                '}';
    }
}
